const HelpDocument = (location, callback) => {
  require.ensure([], require => {
    callback(null, require("containers/setting/help-document-management/help-document").default);
  }, "help-document-management")
};
const HelpDocumentEdit = (location, callback) => {
  require.ensure([], require => {
    callback(null, require("containers/setting/help-document-management/help-document-edit").default);
  }, "help-document-edit")
};
const HelpDocumentHistory = (location, callback) => {
  require.ensure([], require => {
    callback(null, require("containers/setting/help-document-management/help-document-history").default);
  }, "help-document-history")
};

//帮助文档维护
const helpDocumentManagement = {
  key: 'help-document-management',
  url: '/main/help-document-management',
  lazy: true,
  components: HelpDocument,
  icon: 'form',
  children: [
    { //章节编辑
      key: 'help-document-edit',
      lazy: true,
      url: '/main/help-document-management/help-document-edit/:id/:historyID',
      components: HelpDocumentEdit,
      parent: 'help-document-management'
    },
    { //历史版本
      key: 'help-document-history',
      lazy: true,
      url: '/main/help-document-management/help-document-history/:id',
      components: HelpDocumentHistory,
      parent: 'help-document-management'
    }
  ]
};

export default helpDocumentManagement
